<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>LAZZYBOOK Admin</title>

		<link href="assets2/css/style.default.css" rel="stylesheet">
		<link href="assets2/css/morris.css" rel="stylesheet">
		<link href="assets2/css/select2.css" rel="stylesheet" />
		<link href="assets2/css/dataTables.responsive.css" rel="stylesheet">
	</head>

	<body>
		<header>
			<div class="headerwrapper">
				<div class="header-left">
					<a href="index2.html" class="logo">
						<img src="assets2/img/lazzy.png" alt="" />
					</a>
					<div class="pull-right">
						<a href="" class="menu-collapse">
							<i class="fa fa-bars"></i>
						</a>
					</div>
				</div>
				<!-- header-left -->
				<div class="header-right">
					<div class="pull-right">
						<form class="form form-search" action="search-results.html">
							<input type="search" class="form-control" placeholder="Search" />
						</form>
						<div class="btn-group btn-group-option">
							<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                              <i class="fa fa-caret-down"></i>
                            </button>
							<ul class="dropdown-menu pull-right" role="menu">
								<li>
									<a href="help.html"><i class="glyphicon glyphicon-question-sign"></i>帮&nbsp;助</a>
								</li>
								<li class="divider"></li>
								<li>
									<a href="login2.html"><i class="glyphicon glyphicon-log-out"></i>退出登录</a>
								</li>
							</ul>
						</div>
						<!-- btn-group -->
					</div>
					<!-- pull-right -->
				</div>
				<!-- header-right -->
			</div>
			<!-- headerwrapper -->
		</header>
		<section>
			<div class="mainwrapper">
				<div class="leftpanel">
					<div class="media profile-left">
						<img class="img-circle" src="assets2/images/photos/profile.png" alt="">
						<div class="media-body">
							<h4 class="media-heading">艾伦</h4>
							<small class="text-muted">一个热爱生活的程序员</small>
						</div>
					</div>
					<!-- media -->
					<h5 class="leftpanel-title">导航栏</h5>
					<ul class="nav nav-pills nav-stacked">
						<li>
							<a href="index2.html"><i class="fa fa-home"></i> <span>主页</span></a>
						</li>
						<li>
							<a href="messages.html"><span class="pull-right badge">2</span><i class="fa fa-envelope-o"></i> <span>留言板</span></a>
						</li>
						<li class="parent active">
							<a href=""><i class="fa fa-bars"></i> <span>表格</span></a>
							<ul class="children">
								<li class="active">
									<a href="userInfo.html">用户表</a>
								</li>
								<li>
									<a href="orderInfo.html">订单表</a>
								</li>
							</ul>
						</li>
						<li class="parent">
							<a href=""><i class="fa fa-file-text"></i><span>其他</span></a>
							<ul class="children">
								<li>
									<a href="calendar.html">日历</a>
								</li>
								<li>
									<a href="login2.html">登录</a>
								</li>
							</ul>
						</li>
					</ul>
				</div>
				<!-- leftpanel -->
				<div class="mainpanel">
					<div class="pageheader">
						<div class="media">
							<div class="pageicon pull-left">
								<i class="fa fa-bars"></i>
							</div>
							<div class="media-body">
								<ul class="breadcrumb">
									<li>
										<a href="index2.html"><i class="glyphicon glyphicon-home"></i></a>
									</li>
									<li>Table</li>
									<li>UserInfo Table</li>
								</ul>
								<h4>用户资料管理表</h4>
							</div>
						</div>
						<!-- media -->
					</div>
					<!-- pageheader -->
					<div class="pageheader">
						
						<!-- panel-heading -->
						<!--表单-->
						<div class="searchAll">
							<form action="insertuser" method="post">
							 用户地址：&nbsp;&nbsp;&nbsp;<input type="text" size="11" /><br />
							 <br />
						         用户名：&nbsp;&nbsp;&nbsp;<input type="text" size="11" /><br />
						         <br />
						         用户密码：<input type="text" size="11" /><br />
						         <br />
						         用户邮箱：<input type="text" size="11" /><br />
						         <br />
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="update" onclick="update2()" /><br/><br/><input type="button" value="searchall" onclick="searchall()" /> <br>
								
								<br>
								<table id="basicTable" class="table table-striped table-bordered responsive" border="" cellspacing="" cellpadding="" width="600px">
									<tr>
										<th>No</th>
										<th>用户地址</th>
										<th>用户名</th>
										<th>用户密码</th>
										<th>用户邮箱</th>
										<th>操作</th>
									</tr>
									<c:forEach var="user" items="${listUser}" varStatus="no">
										<tr>
											<th>${no.index + 1}</th>
											<td>${user.uid}</</td>
												<td>${user.uname}</td>
												<td>${user.upassword}</</td>
													<td>${user.uemail}</td>
													<th><input type="button" name="del" id="del" value="delete" onclick="todelete(${user.uid});" /><input type="button" value="update" onclick="update2()" /> </th>
										</tr>
									</c:forEach>
								</table>
							</form>
						</div>
					</div>
					<!-- pageheader -->

				</div>
				<!-- mainwrapper -->
		</section>

		<script src="assets2/js/jquery-1.11.1.min.js"></script>
		<script src="assets2/js/jquery-migrate-1.2.1.min.js"></script>
		<script src="assets2/js/bootstrap.min.js"></script>
		<script src="assets2/js/modernizr.min.js"></script>
		<script src="assets2/js/pace.min.js"></script>
		<script src="assets2/js/retina.min.js"></script>
		<script src="assets2/js/jquery.cookies.js"></script>
		<script src="assets2/js/select2.min.js"></script>
		<script src="assets2/js/custom.js"></script>
		<script type="text/javascript">
			function searchall() {
				document.forms[0].action = "searchall";
				document.forms[0].submit();
			}

			function todelete(uid) {
				document.forms[0].action = "todelete";
				document.forms[0].updUid.value = uid;
				document.forms[0].submit();
			}
		</script>
	</body>

</html>